package com.green.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/12/03/22:01
 * @Description: 
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bus_scrap")
public class Scrap implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 供应商编号
     */
    @TableField(value = "providerid")
    private Integer providerid;

    /**
     * 报废时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField(value = "scraptime")
    private Date scraptime;

    /**
     * 操作员
     */
    @TableField(value = "operateperson")
    private String operateperson;

    /**
     * 数量
     */
    @TableField(value = "number")
    private Integer number;

    /**
     * 报废原因
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 商品编号
     */
    @TableField(value = "goodsid")
    private Integer goodsid;

    @TableField(exist = false)
    private String providername;

    @TableField(exist = false)
    private String goodsname;

    @TableField(exist = false)
    private String size;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PROVIDERID = "providerid";

    public static final String COL_SCRAP = "scrap";

    public static final String COL_OPERATEPERSON = "operateperson";

    public static final String COL_NUMBER = "number";

    public static final String COL_REMARK = "remark";

    public static final String COL_GOODSID = "goodsid";
}